package api

import "io"

type StorageKey string

type Storage interface {
	Get(StorageKey) (io.Reader, error)
	Put(StorageKey, io.Reader) error
	Exists(StorageKey) (bool, error)
}

func GenRandStorageKey() (StorageKey, error) {
	randstr, err := GenRandString()
	return StorageKey(randstr), err
}
